package com.dscs.mapper;

import com.dscs.domain.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 叶雪娟
 * @date 2019/7/17
 **/
@Mapper
public interface PermissionMapper {
    /**
     * 根据用户id查询该用户所拥有的权限
     *
     * @param userId
     * @return List<Permission>
     */
    List<Permission> queryUserPermission(@Param("userId") long userId);

}
